Skip to content

fix: stop removing trailing single chars from query string#2045

Merged
ChrisPulman merged 3 commits intoreactiveui:mainfrom
baynezy:fix-2044
Jan 31, 2026
Merged

fix: stop removing trailing single chars from query string#2045
ChrisPulman merged 3 commits intoreactiveui:mainfrom
baynezy:fix-2044

Conversation

@baynezy
Copy link
Contributor

@baynezy baynezy commented Jan 10, 2026

What kind of change does this PR introduce?

This fixes #2044 and #2032

What is the current behavior?

Explained here #2044

What is the new behavior?

The trailing string logic for extracting parameters was overly aggressive.

What might this PR break?
I have run all existing tests and the one I added to show this bug and they all pass locally.

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Docs did not need amending

Other information:

@baynezy
Copy link
Contributor Author

baynezy commented Jan 11, 2026

Can we please get this or #2041 merged and deployed please, as it is quite broken for this use case.

@baynezy baynezy changed the title bug: stop removing trailing single chars from query string fix: stop removing trailing single chars from query string Jan 11, 2026
@auptonmercuria
Copy link

auptonmercuria commented Jan 15, 2026

Does this also fix an issue with trailing slashes on the URI? e.g. https://github.com/reactiveui/refit/pull/ is getting modified to https://github.com/reactiveui/refit/pull which now fails on some sites?

GitHub
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface. - Pull requests · reactiveu...
GitHub
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface. - Pull requests · reactiveu...

@ChrisPulman ChrisPulman merged commit f1af4a5 into reactiveui:main Jan 31, 2026
4 checks passed
@baynezy baynezy deleted the fix-2044 branch January 31, 2026 15:38
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Refit Trimming double quotes from the end of the query string

3 participants